home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
c
/
AmiVoGL_MDEV.lha
/
src
/
points.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-12
|
2KB
|
134 lines
#include "vogl.h"
/*
* pnt
*
* plot a point in x, y, z.
* This is just the old VOGLE routine point.
*
*/
void pnt(
float x,
float y,
float z)
{
if(!vdevice.initialised)
verror("pnt: vogl not initialised");
move(x, y, z);
draw(x, y, z);
}
/* ------------------------------------------------------------------------ */
/*
* pnts
*
* plot a point (short integer version)
*
*/
void pnts(
Scoord x,
Scoord y,
int z)
{
pnt((Coord)x, (Coord)y, (Coord)z);
}
/* ------------------------------------------------------------------------ */
/*
* pnti
*
* plot a point (short integer version)
*
*/
void pnti(
Icoord x,
Icoord y,
Icoord z)
{
pnt((Coord)x, (Coord)y, (Coord)z);
}
/* ------------------------------------------------------------------------ */
/*
* pnt2
*
* plot a point in x, y.
*
*/
void pnt2(
Coord x,
Coord y)
{
move(x, y, 0.0);
draw(x, y, 0.0);
}
/* ------------------------------------------------------------------------ */
/*
* pnt2s in x, y
*
* plot a point (short integer version)
*
*/
void pnt2s(
Scoord x,
Scoord y)
{
pnt2((Coord)x, (Coord)y);
}
/* ------------------------------------------------------------------------ */
/*
* pnt2i in x, y
*
* plot a point (short integer version)
*
*/
void pnt2i(
Icoord x,
Icoord y)
{
pnt2((Coord)x, (Coord)y);
}
/* ------------------------------------------------------------------------ */
/*
* bgnpoint
*
* Flags that all v*() routine points will be building up a point list.
*/
void bgnpoint(void)
{
if (vdevice.bgnmode != NONE)
verror("vogl: bgnpoint mode already belongs to some other bgn routine");
vdevice.bgnmode = VPNT;
vdevice.save = 0;
}
/* ------------------------------------------------------------------------ */
/*
* endpoint
*
* Flags that all v*() routine points will be simply setting the
* current position.
*/
void endpoint(void)
{
vdevice.bgnmode = NONE;
vdevice.save = 0;
}
/* ------------------------------------------------------------------------ */